package cn.tedu.exam1.user.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
@ApiModel(value = "UserSaveParam", description = "新增/更新用户信息请求参数")
public class UserSaveParam {
    @ApiModelProperty(value = "id")
    private Long id;
    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "用户名")
    @NotBlank(message = "用户名不能为空")
    private String username;

    @ApiModelProperty(value = "性别")
    @NotBlank(message = "性别不能为空")
    private String gender;

    @ApiModelProperty(value = "密码")
    @NotBlank(message = "密码不能为空")
    private String password;

    @ApiModelProperty(value = "昵称")
    @NotBlank(message = "昵称不能为空")
    private String nickname;

    @ApiModelProperty(value = "邮箱")
    @NotBlank(message = "邮箱不能为空")
    private String email;

    @ApiModelProperty(value = "手机号")
    @NotBlank(message = "手机号不能为空")
    private String phone;


    @ApiModelProperty(value = "收藏")
    private String collect;

    @ApiModelProperty(value = "粉丝")
    private String fan;

    @ApiModelProperty(value = "关注")
    private String follow;

    @ApiModelProperty(value = "个人简介")
    private String personalSummary;

    @ApiModelProperty(value = "快递地址")
    private String addressManagement;

    @ApiModelProperty(value = "出生日期")
    private String birthDate;
}